package com.zy.store.entity;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 商品库存表(表t_item_info)ORM实体类
 *
 * @author ZY
 * @date 2021-04-12 18:58:47
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_item_info")
public class ItemInfo implements Serializable {

    private static final long serialVersionUID = -77803855051026119L;

    /**
     * 主键ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "JDBC")
    private Integer id;

    /**
     * 商品编号
     */
    private String itemNo;

    /**
     * 商品名称
     */
    private String itemName;

    /**
     * 商品库存
     */
    private Integer itemStore;

    /**
     * 商品价格
     */
    private Double itemPrice;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

}